package cn.signalpha.modules.shop.listener;

import cn.signalpha.modules.com.service.UserService;
import cn.signalpha.modules.com.service.UserWalletService;
import cn.signalpha.modules.shop.entity.Order;
import cn.signalpha.modules.shop.event.OrderReceiptEvent;
import cn.signalpha.modules.shop.service.GoodsService;
import cn.signalpha.modules.shop.service.OrderDetailService;
import lombok.AllArgsConstructor;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * 订单确认收货
 */
@AllArgsConstructor
@Component("orderReceiptListener")
public class OrderReceiptListener {

	private final UserService userService;
	private final GoodsService goodsService;
    private final OrderDetailService orderDetailService;
	private final UserWalletService userWalletService;

    @EventListener(OrderReceiptEvent.class)
    public void defaultReceiptOrderEvent(OrderReceiptEvent event) {
		Order order = event.getOrder();


		//TODO 添加分账方信息


    }
}
